package com.idis.managerApp.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by Ming on 2018/1/28.
 */

/**
 * 后台首页("/")
 */
@RestController
public class IndexController {

    @RequestMapping("/")
    public Object index(HttpServletRequest request){
        return request.getSession().getAttribute("SPRING_SECURITY_CONTEXT");
    }
}
